package com.zwr.sheller.shop.service;

import com.zwr.sheller.core.common.WQQBusinessException;
import com.zwr.sheller.core.pojo.Seller;

/**
 * @Author: 18032
 * @Date: 9:56 2022/1/7
 */
public interface LoginService {
    /**
     * 验证token是否合理
     * @param token token
     * @return seller对象
     * @throws WQQBusinessException 异常
     */
    Seller queryUserByToken(String token) throws WQQBusinessException;

    /**
     * 后台登录板块
     * @param phone
     * @param pwd
     * @return
     */
    Seller login(String phone,String pwd) throws WQQBusinessException;

    /**
     * 忘记密码的时候修改密码
     * @param phone
     * @param code
     * @return
     */
    Integer forgetPwd(String phone,String code,String pwd) throws WQQBusinessException;
}
